<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下前台</title>
    <link rel="icon" href="/zwtx/public/images/tx.ico" type="image/x-icon" style="width: 50px;height: 50px"/>
    <include file="Public/head"/>




    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin" style=";background-image:url(__PUBLIC__/images/pic/{$upic[0][bgphoto]});;width: 100%;height: 100%;background-size: 100%">
<include file="Public/pheader"/>
<div id="wrap" style=";margin-bottom: 60px">
    <div class="container-fluid">

        <div class="col-md-10 col-md-offset-1 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">个人中心</p>
            </h2>
            <hr>
        </div>
        <span style="display: none">{$upic[0]['username']}</span>
        <div class="col-md-6 col-md-offset-3  " style="border: solid 1px #60ffc8;border-radius: 5%;">
            <form method=post action="{:U('Personal/search')}" enctype="multipart/form-data"class="form-horizontal" style="margin-top: 1%;width: 30%">
                <div class="form-group col-md-12" >
                    <div class="col-md-10" style="margin-right: 0px;padding-right: 0px">
                        <input type="search" name="text" results=s style="float: right" class="form-control" id="title" placeholder="请输入标题搜索" required>
                    </div>
                </div>
            </form>
            <table class="table " style="border: none;margin-top: 5%">
                <thead >
                <tr >
                    <th style="text-align: center">序号</th>
                    <th style="text-align: center">类别名</th>
                    <th style="text-align: center">标题</th>
                    <th style="text-align: center">新闻图片</th>
                    <th style="text-align: center">操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="list" id="vo">
                    <tr>
                        <td style="font-size: larger;color: #4f4f4f;text-align: center">{$vo['code']}</td>
                        <td style="color: #4f4f4f;text-align: center">{$vo['tid']}</td>
                        <td style="color: #4f4f4f;text-align: center">{$vo['title']}</td>
                        <td style="text-align: center" >
                            <a href="{:U('Personal/detail')}?id={$vo['id']}" >
                                <img src="__PUBLIC__/images/pic/{$vo.n_pic}" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                            </a>
                        </td>

                        <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                            <a href="{:U('Personal/del')}?id={$vo['id']}"onClick="return confirm('确定要删除吗？')" >
                                <img src="__PUBLIC__/images/delete.png" width="20" height="20"></a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>

        <div class="row">
            <div class="col-md-3"></div>
            <div class="col-md-4 col-md-offset-1" style="margin-top: 5%;text-align: center">
                <a href="{:U('Index/index')}" >
                    <img src="__PUBLIC__/images/back.png" width="40" height="40" style="margin-top: 2%;">
                </a>
                <a  class="modelshow"  href="javascript:;">
                    <button type="button" class="btn btn-info" style="margin-left: 5%;margin-top: 2%;">设置壁纸</button>
                </a>
                <a href="{:U('Fourm/index')}" >
                    <button type="button" class="btn btn-success" style="margin-top: 2%;">论坛</button>
                </a>
                <a href="{:U('Personal/delphoto')}" onClick="return confirm('确定要清空壁纸吗？')">
                    <button type="button" class="btn btn-danger" style="margin-top: 2%;">清空壁纸</button>
                </a>

            </div>
        </div>
        <script>
            $('.modelshow').click(function (){
                $('#myModal').modal('show');
            })
        </script>
        <include file="Public/addbgModal"/>

    </div>
</div>
</body>
</html>
